package cn.serein.charging.order.feign;

import cn.serein.charging.common.pojo.JsonResult;
import cn.serein.charging.common.pojo.param.ChargingProcessParam;
import cn.serein.charging.common.pojo.vo.ChargingProcessVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "cost-service")
public interface CostClient {

    // 请求计费几口
    @PostMapping("/cost/calculate")

    // 默认是public的
    JsonResult<ChargingProcessVO> calculateCost(@RequestBody ChargingProcessParam chargingProcessParam);

    // 下一步  去创建topic和接收topic
}
